package com.unknown

import org.apache.activemq.xbean.XBeanBrokerService

/**
 * Created by IntelliJ IDEA.
 * User: propatalent
 * Date: 10/26/11
 * Time: 10:36 PM
 * To change this template use File | Settings | File Templates.
 */
class WSTransportServerInitializer {
    
    public void setBroker(def service){
        try{
            def server = new WSTransportServer(new URI("ws://0.0.0.0:61614"))
            server.start();
            service.addConnector(server);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
